<%-- 
    Document   : productAdd
    Created on : 2019-9-12, 8:34:46
    Author     : danny
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jspf/top.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>新增商品</h1>
        <form action="${contextPath}/product.html" method="post" enctype="multipart/form-data">
            <input type="hidden" name="action" value="doAdd"/>
            <table>
                <tr>
                    <td>商品名称：</td>
                    <td><input type="text" name="epName" value="${param.epName}"/></td>
                </tr>
                <tr>
                    <td>商品描述：</td>
                    <td><input type="text" name="epDescription" value="${param.epDescription}"/></td>
                </tr>
                <tr>
                    <td>价格：</td>
                    <td><input type="text" name="epPrice" value="${param.epPrice}"/></td>
                </tr>
                <tr>
                    <td>库存：</td>
                    <td><input type="text" name="epStock" value="${param.epStock}"/></td>
                </tr>
                <tr>
                    <td>图片：</td>
                    <td><input type="file" name="epFileName" value="${param.epFileName}"/></td>
                </tr>
                <tr>
                    <td colspan="2"><span style="color: red">${error}</span></td>
                </tr>
                <tr>
                    <td colspan="2"><input type="submit" value="添加" /></td>
                </tr>
            </table>
        </form>
    </body>
</html>
